declare const miniPlatform: WechatMiniprogram.Wx;

/** @description:抹平wx平台问题
 * @returns { wx | WechatMiniprogram.Wx }
 */
export function platformBridge(): WechatMiniprogram.Wx {
    if (typeof wx === 'undefined' && typeof miniPlatform !== 'undefined') return miniPlatform;
    return wx;
}